package DCSource.Size.Default.Byte;
import DCSource.Size.Template.Size;
import DCSource.Size.Template.SizeForm;

public class GigaByte implements SizeForm{
	private Size value = new Size(0,4);
	public GigaByte(){}
	public GigaByte(double value){
		this.value.setValue(value);
	}
	public double getValue(){
		return this.value.getValue();
	}
	public GigaByte setValue(double value){
		this.value.setValue(value);
		return this;
	}
	public double getIndex(){
		return this.value.getIndex();
	}
	public GigaByte add(double value){
		this.value.add(value);
		return this;
	}
	public GigaByte multi(double value){
		this.value.multi(value);
		return this;
	}
	public GigaByte sub(double value){
		this.value.sub(value);
		return this;
	}
	public GigaByte div(double value){
		this.value.div(value);
		return this;
	}
	public GigaByte pow(double value){
		this.value.pow(value);
		return this;
	}
	public GigaByte nsqrt(double value){
		this.value.nsqrt(value);
		return this;
	}
	public double getPower(){
		return this.value.getOrginsPower();
	}
	public GigaByte undoPower(){
		this.value.undoPower();
		return this;
	}
	public String getName(){
		return "Gigabyte";
	}
	public String getTag(){
		return "Gb";
	}
	public String toString(){
		return this.value.getValue()+this.getTag();
	}
}
